package ie.timalb.chess.main.core.rules;

import ie.timalb.chess.main.core.Board;
import ie.timalb.chess.main.core.Turn;
import ie.timalb.chess.main.core.movement.Movement;

public class RulesEngine {
	RuleSet rules;
	
	public RulesEngine() {
		//Initialize the rules
		rules = new RuleSet();
	}
	
	public boolean ValidateMovement (Turn turn, Movement movement, Board board){
		boolean rulesValidated = false;		
		
		rulesValidated = getRules().validateMovement(turn, movement, board);
		return (rulesValidated);
	}
	
	public RuleSet getRules() {
		return rules;
	}

	public void setRules(RuleSet rules) {
		this.rules = rules;
	}
}
